home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / vgaed.zip / VGAH.ZIP / VGACOLOR.H < prev   
Text File  |  1996-11-28  |  3KB  |  91 lines

  1. /* vgaedit 1.1 copy right 1996 by Bruce R. O'Banion prototypes */
  2.  
  3. int read_palette(char palette);
  4. int read_dac_buff(char  *color_buff);
  5. int read_color_reg(char *colors,int reg);
  6. int write_dac_buff(char  *color_buff);
  7. int write_color_reg(char *colors,int reg);
  8. int gray_color_regs(void);
  9. int gray_color_reg(int reg);
  10. int vga_get_adapter(void);
  11. int read_palette_scheme(char *color_buff);
  12. int write_palette_scheme(char *color_buff);
  13. int write_palette(char color,char palette);
  14. int toggle_intensity(unsigned char toggle);
  15. int toggle_blink(unsigned char toggle);
  16. int load_color_regs(char *file_name);
  17. int save_color_regs(char *file_name);
  18. int load_palette(char *file_name);
  19. int save_palette(char *file_name);
  20.  
  21. # define VGA 9
  22. # define EGA 3
  23.  
  24.  
  25. /* color defines for the DAC */
  26.  
  27. #define C_BLACK               0
  28. #define C_BLUE                1
  29. #define C_GREEN               2
  30. #define C_CYAN                3
  31. #define C_RED                 4
  32. #define C_MAGENTA             5
  33. #define C_LIME                6
  34. #define C_LIGHT_GRAY          7
  35. #define C_DARK_PURPLE         8
  36. #define C_BRIGHT_BLUE         9
  37. #define C_LIGHT_GREEN        10
  38. #define C_PALE_CYAN          11
  39. #define C_ROSE               12
  40. #define C_PALE_PURPLE        13
  41. #define C_PEA_GREEN          14
  42. #define C_PALE_MAGENTA       15
  43. #define C_FOREST_GREEN       16
  44. #define C_INDIGO             17
  45. #define C_BRIGHT_GREEN       18
  46. #define C_PALE_GREEN         19
  47. #define C_BROWN              20
  48. #define C_LIGHT_MAGENTA      21
  49. #define C_BRIGHT_GREEN_2     22
  50. #define C_PALE_GREEN_2       23
  51. #define C_DARK_GRAY          24
  52. #define C_LIGHT_BLUE         25
  53. #define C_BRIGHT_GREEN_3     26
  54. #define C_LIGHT_CYAN         27
  55. #define C_RED_BROWN          28
  56. #define C_PALE_MAGENTA_2     29
  57. #define C_BRIGHT_GREEN_4     30
  58. #define C_BRIGHT_CYAN        31
  59. #define C_DARK_RED           32
  60. #define C_DARK_INDIGO        33
  61. #define C_GREEN_2            34
  62. #define C_CYAN_2             35
  63. #define C_BRIGHT_RED         36
  64. #define C_BRIGHT_MAGENTA     37
  65. #define C_ORANGE_YELLOW      38
  66. #define C_MELLON             39
  67. #define C_DARK_PURPLE_2      40
  68. #define C_BLUE_2             41
  69. #define C_GREEN_3            42
  70. #define C_SKY_BLUE           43
  71. #define C_BRIGHT_RED_2       44
  72. #define C_BRIGHT_MAGENTA_2   45
  73. #define C_TAN                46
  74. #define C_PINK               47
  75. #define C_FOREST_GREEN_2     48
  76. #define C_BLUE_GRAY          49
  77. #define C_BRIGHT_GREEN_5     50
  78. #define C_PALE_GREEN_3       51
  79. #define C_RED_ORANGE         52
  80. #define C_DARK_PINK          53
  81. #define C_LIME_YELLOW        54
  82. #define C_PALE_YELLOW        55
  83. #define C_DARK_GRAY_2        56
  84. #define C_BLUE_3             57
  85. #define C_GREEN_4            58
  86. #define C_PALE_CYAN_2        59
  87. #define C_LIGHT_RED          60
  88. #define C_PALE_MAGENTA_3     61
  89. #define C_YELLOW             62
  90. #define C_WHITE              63
  91.